[NTG-context] Re: Setuphead issue!

2024-01-09 Thread G.C.H.M. Verhaag via ntg-context
Hi, Thanks for all your attention and suggestions! I'll give them a try! Gerard ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread G.C.H.M. Verhaag via ntg-context
Hi Mikael, Figured out that the grid=yes option in the setuplayout command caused the issue. When I set it to no/off, the problem is gone! However, I need it because of the columnset, when I switch the grid option off than the pdf-output is totally messed up, sorry! Gerard

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread Henning Hraban Ramm
Am 09.01.24 um 14:43 schrieb G.C.H.M. Verhaag via ntg-context: Hi, The example below works as expected, but within my product it doesn't. % Subject example before and after! \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread Mikael Sundqvist
Hi, On Tue, Jan 9, 2024 at 2:45 PM G.C.H.M. Verhaag via ntg-context wrote: > > Hi, > The example below works as expected, but within my product it doesn't. > > % Subject example before and after! > > \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[no

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread G.C.H.M. Verhaag via ntg-context
Hi, The example below works as expected, but within my product it doesn't. % Subject example before and after! \setuphead[subject][color=limegreen,before={\blank[none]},after={\blank[none]},align={flushleft,nothyphenated,tolerant}] \starttext A paragraph before calling the subject. \subject

[NTG-context] Re: Setuphead issue!

2024-01-09 Thread Mikael Sundqvist
Hi, On Tue, Jan 9, 2024 at 11:30 AM G.C.H.M. Verhaag via ntg-context wrote: > > Hi, > > I'm a bit puzzled by the mkiv setuphead command of ConTeXt! > > The space before and after the subject command can usually be set by the > before and after arguments of the setuphead

[NTG-context] Setuphead issue!

2024-01-09 Thread G.C.H.M. Verhaag via ntg-context
Hi, I'm a bit puzzled by the mkiv /setuphead/ command of ConTeXt! The space *before* and *after* the /subject/ command can usually be set by the *before* and *after* arguments of the /setuphead/ command. Now I'd like to have _no vertical space_ before and after the header. I've tried just

[NTG-context] Setuphead issue!

2024-01-09 Thread G.C.H.M. Verhaag via ntg-context
Hi, I'm a bit puzzled by the mkiv setuphead command of ConTeXt! The space before and after the subject command can usually be set by the before and after arguments of the setuphead command. Now I'd like to have no vertical space before and after the header. I've tried just that by setting

Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Wolfgang Schuster via ntg-context
Alan Braslau schrieb am 11.06.2023 um 20:12: On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote: Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead   [part,chapter,title]   [page=right] will start a part, chapter, or title on an odd page (right

Re: [NTG-context] setuphead page=right and blank even page.

2023-06-11 Thread Alan Braslau via ntg-context
On 10/06/23 10/06/23, 12:42, Wolfgang Schuster via ntg-context wrote: Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead   [part,chapter,title]   [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if

Re: [NTG-context] setuphead page=right and blank even page.

2023-06-10 Thread Wolfgang Schuster via ntg-context
Alan Braslau via ntg-context schrieb am 10.06.2023 um 12:28: Hello, \setuphead   [part,chapter,title]   [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if necessary. How can I get this blank even page to be tr

[NTG-context] setuphead page=right and blank even page.

2023-06-10 Thread Alan Braslau via ntg-context
Hello, \setuphead [part,chapter,title] [page=right] will start a part, chapter, or title on an odd page (right), inserting a "blank" even page if necessary. How can I get this blank even page to be truely blank, that is with no headers nor footers? I tried several think

[NTG-context] How to reset settings in setuphead back to defaults?

2022-08-21 Thread Joel via ntg-context
I have some settings like this, which define the part, chapter, and section titles within a file that contains all of my common settings for all files. \definepagebreak[chapterpagebreak][yes, right] \setuphead[part][style=\sse, placehead=yes, expansion=yes] \setuphead[chapter][style=\sse

Re: [NTG-context] Any way to configure \setuphead to run a setups on the stop command?

2022-07-26 Thread Henning Hraban Ramm via ntg-context
Am 26.07.22 um 12:41 schrieb Bruce Horrocks via ntg-context: If I use \definehead [Chapter] [chapter] and then \setuphead[Chapter][...] I can specify setups to run before and after \startChapter. Is there any way to specify setups that are run before & after \stopChapter? \setuphead[Cha

[NTG-context] Any way to configure \setuphead to run a setups on the stop command?

2022-07-26 Thread Bruce Horrocks via ntg-context
If I use \definehead [Chapter] [chapter] and then \setuphead[Chapter][...] I can specify setups to run before and after \startChapter. Is there any way to specify setups that are run before & after \stopChapter? My real problem is that I have a double-sided book with new chapters star

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Joey McCollum via ntg-context
in all caps, and set with extra letterspacing. > > * Most importantly, the title of the heading should appear on its own > > page without a header or footer. The text of the body should begin > > on the next odd page. > > > > I was hoping to accomplish all

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-07 Thread Wolfgang Schuster via ntg-context
on its own page without a header or footer. The text of the body should begin on the next odd page. I was hoping to accomplish all of this within the \setuphead command, and it seems like this should be possible, but in the following example, I'm not getting the text of the header at al

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-06 Thread Joey McCollum via ntg-context
t; > > heading; in the MWE below, it's called "MyPart". > > Hi Joey, > > these are options for \setuphead[part] (MyPart in your case): > > > I'd like this heading to have the following features: > > > > * Its title should appear in the ToC, but i

Re: [NTG-context] Setting a heading text on its own page with \setuphead

2021-08-06 Thread Pablo Rodriguez via ntg-context
On 8/6/21 7:12 PM, Joey McCollum via ntg-context wrote: > Hi, > > I'd like to define my own class of heading derived from the "part" > heading; in the MWE below, it's called "MyPart". Hi Joey, these are options for \setuphead[part] (MyPart in your case):

[NTG-context] Setting a heading text on its own page with \setuphead

2021-08-06 Thread Joey McCollum via ntg-context
he body should begin on the next odd page. I was hoping to accomplish all of this within the \setuphead command, and it seems like this should be possible, but in the following example, I'm not getting the text of the header at all: ``` \setuppagenumbering [alternative=doublesided, location=

Re: [NTG-context] troubles with setuphead, page=right

2020-12-06 Thread Damien Thiriet
> \setuppagenumbering[alternative=doublesided] That solved the problem, thanks. Damien Thiriet ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

[NTG-context] troubles with setuphead, page=right

2020-12-06 Thread Damien Thiriet
Hi, \setuphead[subject] [page={yes,right}] \starttext \startsubject[title=test 1] \input ward \stopsubject \startsubject[title=test 2] \input ward \stopsubject \stoptext makes the job on ConTeXt online, but doesn't with my lmtx version. Did the syntax change in lmtx? Best regards

[NTG-context] troubles with setuphead, page=right

2020-12-06 Thread Damien Thiriet
Hi, The following MWE does not give the output I expect, that is subject starting on page 1 and 3. What did I miss? \setuphead[subject] [page=right] \starttext \startsubject[title=test 1] \input ward \stopsubject \startsubject[title=test 2] \input ward \stopsubject \stoptext Damien Thiriet

Re: [NTG-context] troubles with setuphead, page=right

2020-12-06 Thread Pablo Rodriguez
On 12/6/20 3:20 PM, Damien Thiriet wrote: > Hi, > > \setuphead[subject] [page={yes,right}] > [...] > makes the job on ConTeXt online, but doesn't with my lmtx version. Hi Damien, https://live.contextgarden.net/cgi-bin/result.cgi?id=EXmDKW gives the expected output: no double

Re: [NTG-context] troubles with setuphead, page=right

2020-12-06 Thread Pablo Rodriguez
per setup reads: \setuppagenumbering[alternative=doublesided] > \setuphead[subject] [page=right] Double-sided documents are required to make sense of right pages. I hope it helps, Pablo -- http://www.ousia.tk __

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
again, sorry for replying on the wrong channel. On Wed, 4 Nov 2020 at 17:35, Hans Hagen wrote: > > it would harm performance because it involves parsing all values and > also ways around cases where the title is "function" (lieral text). > I'm not sure I understand what you mean by literal

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Hans Hagen
On 11/4/2020 4:53 PM, Sylvain Hubert wrote: % Hans, sorry for having replied on the wrong channel before. On Tue, 3 Nov 2020 at 09:03, Hans Hagen <mailto:j.ha...@xs4all.nl>> wrote: On 11/3/2020 4:05 AM, Sylvain Hubert wrote: >  > as tables like those in setu

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-04 Thread Sylvain Hubert
% Hans, sorry for having replied on the wrong channel before. On Tue, 3 Nov 2020 at 09:03, Hans Hagen wrote: > On 11/3/2020 4:05 AM, Sylvain Hubert wrote: > > > as tables like those in setuphead({somehead}, {somesettings}) are > > actual Lua tables and follow L

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-03 Thread Hans Hagen
On 11/3/2020 4:05 AM, Sylvain Hubert wrote: > as tables like those in setuphead({somehead}, {somesettings}) are actual Lua tables and follow Lua, not TeX, rules But there are lua apis that support delayed TeX like `context.chapter(context.delayed'text')`. Whether or not the function is sto

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Jairo A. del Rio
layed.cmdd(somethingelse)}) won't. Hans and Wolfgang can elaborate in case I've missed something. Jairo :) El lun., 2 de nov. de 2020 a la(s) 22:06, Sylvain Hubert ( champign...@gmail.com) escribió: > > as tables like those in setuphead({somehead}, {somesettings}) are actual > Lua tables a

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Sylvain Hubert
> as tables like those in setuphead({somehead}, {somesettings}) are actual Lua tables and follow Lua, not TeX, rules But there are lua apis that support delayed TeX like `context.chapter(context.delayed'text')`. Whether or not the function is stored in a table should be theoretically irrelevant

Re: [NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Jairo A. del Rio
On the Lua side, you'll have to pass strings so your example works, as tables like those in setuphead({somehead}, {somesettings}) are actual Lua tables and follow Lua, not TeX, rules (see e.g. Lua reference in https://www.lua.org/manual/5.4/ or, better, CLD manual in http://www.pragma-ade.nl

[NTG-context] context.delayed as parameter of setuphead[before=...]

2020-11-02 Thread Sylvain Hubert
Dear List, I'm trying to mirror the context command `\setuphead[chapter][before=hello]` into lua with delayed typesetting of 'hello', but `\ctxlua{context.setuphead({'chapter'}, {before=context.delayed'hello'})}` does not have any effect. Could anyone help me on this? Thanks! Best, Sylvain

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
section and access the value of this macro with the > beforesection-key. You should ensure the content if this temporary macro > is cleared when your conditional is false. > > \setuphead >[section] >[beforesection=\getvariable{xml}{beforesection}] > > \startxmlsetups

Re: [NTG-context] conditional not working in \setuphead

2020-04-20 Thread Wolfgang Schuster
is cleared when your conditional is false. \setuphead [section] [beforesection=\getvariable{xml}{beforesection}] \startxmlsetups xml:section \doifelse{\xmlatt{#1}{id}}{\selectedtopic} {\setvariable{xml}{beforesection}{conditional}} {\setvariable{xml}{beforesection

[NTG-context] conditional not working in \setuphead

2020-04-20 Thread Pablo Rodriguez
Dear list, I have the following sample: \startbuffer[demo] first second \stopbuffer \startxmlsetups xml:initialize \xmlsetsetup{#1}{doc|section}{xml:*} \stopxmlsetups \xmlregistersetup{xml:initialize} \startxmlsetups xml:doc

Re: [NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-03 Thread Benjamin Buchmuller
psubject >> \else >> \startsubject[title=Footnotes] >> \placefootnotes >> \stopsubject >> \fi >> \stopsetups >> \setupnotes[location=none] >> \setupnotation[way=bychapter] >> \setuphead[chapter][aftersectio

Re: [NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-02 Thread Wolfgang Schuster
] \placefootnotes \stopsubject \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setuphead[chapter][aftersection=\setups{chapter:after}] Here is a slightly reformatted version of Hans code which works for me with the latest ConTeXt version

[NTG-context] \placenamedfloat and \setuphead[aftersection=...] broken?

2020-04-02 Thread Benjamin Buchmuller
\startsubject[title=Footnotes] \placefootnotes \stopsubject \fi \stopsetups \setupnotes[location=none] \setupnotation[way=bychapter] \setuphead[chapter][aftersection=\setups{chapter:after

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 8:45 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 16.05.2019 um 18:43: >> [...] >> After checking i-context, the options for the second pair of brackets are: >> >>KEY = VALUE >> >> Well, I think this is the standard case. Aren’t va

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 16.05.2019 um 18:43: Dear list, I have the following sample: \setuphead[chapter] [beforesection=\TeX, aftersection=\TeX] \starttext \startchapter[title=Chapter, beforesection=\ConTeXt, aftersection=\ConTeXt

Re: [NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
On 5/16/19 6:43 PM, Pablo Rodriguez wrote: > [...] > What would be my approach to deal with "\xmldoif{#1}{.[@id='topic' and > contains(@class,'hidden')]}" in beforesection? > > I realize that "\definehead[specialchapter][chapter]" would be a > workaround, but I would like to find a more proper

[NTG-context] xmldoif, \startSECTION ... \stopSECTION and \setuphead

2019-05-16 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuphead[chapter] [beforesection=\TeX, aftersection=\TeX] \starttext \startchapter[title=Chapter, beforesection=\ConTeXt, aftersection=\ConTeXt] This is my chapter. \stopchapter \stoptext

Re: [NTG-context] Question to key commnad at \setuphead

2019-03-05 Thread Tomas Hala
Thank you, Wolgang, that's it. Yesterday I tried also numbercommand, textcommand, etc. and the described problem did not appear. Why the key "command" needs \unexpanded and other keys (*command) not? Best wishes, Tomáš Mon, Mar 04, 2019 ve 06:50:27PM +0100 Wolfgang Schuster napsal(a): #

Re: [NTG-context] Question to key commnad at \setuphead

2019-03-04 Thread Wolfgang Schuster
Tomas Hala schrieb am 04.03.19 um 18:42: Hi all, compiling the ME below (ConTeXt from TeXlive) I got this error message: ! Argument of \MyChapterCommand has an extra } and I do not know why. What am I doing wrong? Best wishes, Tomáš === \starttext

[NTG-context] Question to key commnad at \setuphead

2019-03-04 Thread Tomas Hala
Hi all, compiling the ME below (ConTeXt from TeXlive) I got this error message: ! Argument of \MyChapterCommand has an extra } and I do not know why. What am I doing wrong? Best wishes, Tomáš === \starttext \def\MyChapterCommand#1#2{::#1//#2==} %\setuphead [chapter][command

Re: [NTG-context] Changes \setuphead

2019-01-22 Thread Ursula Hermann
Hi Wolfgang! Thank you for your mails. Ursula Hermann. -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Wolfgang Schuster Gesendet: Montag, 21. Jänner 2019 22:07 An: mailing list for ConTeXt users ; Otared Kavian Betreff: Re: [NTG-context] Changes \setuphead Otared

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Wolfgang Schuster
Otared Kavian schrieb am 21.01.19 um 12:08: Hi Ursula, If you replace the \startsetups[chapter:before] with the following, you obtain a page without the page number: \startsetups [chapter:before] \doifoddpageelse {} {\pushbackground[page] \setuppagenumbering[state=stop]

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Wolfgang Schuster
a fancy left page you can use \setuphead [chapter] [page={yes,header,footer,right}] Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
Hi Otared Thank you, that helped. I have tried the example, as written. Ursula Hermann -Ursprüngliche Nachricht- Von: ntg-context Im Auftrag von Otared Kavian Gesendet: Montag, 21. Jänner 2019 12:08 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Changes \setuphead Hi

Re: [NTG-context] Changes \setuphead

2019-01-21 Thread Otared Kavian
> > \startsetups [chapter:before] > \doifoddpageelse > {} > {\pushbackground[page] > \setupbackgrounds[page][background=color,backgroundcolor=gray] > \page[right] > \popbackground} > \stopsetups > > \setuphead > [chapter] > [page=

[NTG-context] Changes \setuphead

2019-01-21 Thread Ursula Hermann
] \doifoddpageelse {} {\pushbackground[page] \setupbackgrounds[page][background=color,backgroundcolor=gray] \page[right] \popbackground} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}] \starttext \startchapter[title={Knuth}] \dorecurse{2

Re: [NTG-context] align in setuphead

2018-12-06 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 06.12.18 um 11:14: On 12/6/18 7:36 AM, Jan U. Hasecke wrote: Hi all, why aligns left to right and right to left in this example? \setuphead [title] [align=left] Hi Jan U., flushleft is the value to get left aligninig. I read the explanation somewhere. Left

Re: [NTG-context] align in setuphead

2018-12-06 Thread Pablo Rodriguez
On 12/6/18 7:36 AM, Jan U. Hasecke wrote: > Hi all, > > why aligns left to right and right to left in this example? > > \setuphead [title] [align=left] Hi Jan U., flushleft is the value to get left aligninig. I read the explanation somewhere. Left and right aligned to the

[NTG-context] align in setuphead

2018-12-05 Thread Jan U. Hasecke
Hi all, why aligns left to right and right to left in this example? \setuphead [title] [align=left] \starttext \starttitle[title=Test] \stoptitle \stoptext TIA juh ___ If your question is of interest to others

Re: [NTG-context] \setuphead for a section block

2018-10-23 Thread Pablo Rodriguez
On 10/23/18 9:25 PM, Wolfgang Schuster wrote: > Pablo Rodriguez schrieb am 23.10.18 um 21:18: >> [...] >> But wasn’t there a command similar to the following one for such purposes? >> >> \setuphead[bodypart:chapter][style=\em] >> >> I remember that ther

Re: [NTG-context] \setuphead for a section block

2018-10-23 Thread Rik
On 10/23/2018 15:23, Rik wrote: On 10/23/2018 15:18, Pablo Rodriguez wrote: Dear list, imagine that I need a different setup for chapter in the bodymatter than in the frontmatter and appendices. The way to do it seems to be: \setuphead[chapter][style=\bf

Re: [NTG-context] \setuphead for a section block

2018-10-23 Thread Wolfgang Schuster
Pablo Rodriguez schrieb am 23.10.18 um 21:18: Dear list, imagine that I need a different setup for chapter in the bodymatter than in the frontmatter and appendices. The way to do it seems to be: \setuphead[chapter][style=\bf] \startsectionblockenvironment[bodypart

Re: [NTG-context] \setuphead for a section block

2018-10-23 Thread Rik
On 10/23/2018 15:18, Pablo Rodriguez wrote: Dear list, imagine that I need a different setup for chapter in the bodymatter than in the frontmatter and appendices. The way to do it seems to be: \setuphead[chapter][style=\bf] \startsectionblockenvironment[bodypart] \setuphead

[NTG-context] \setuphead for a section block

2018-10-23 Thread Pablo Rodriguez
Dear list, imagine that I need a different setup for chapter in the bodymatter than in the frontmatter and appendices. The way to do it seems to be: \setuphead[chapter][style=\bf] \startsectionblockenvironment[bodypart] \setuphead[chapter][style=\em

Re: [NTG-context] two suggestions for \setuphead

2017-03-28 Thread Pablo Rodriguez
On 03/27/2017 10:15 PM, Hans Hagen wrote: > On 3/27/2017 9:49 PM, Pablo Rodriguez wrote: >> [...] >> One of the results of no value for width in margin data is a tricky >> approach to its alignment. >> >> But since I seem to be the only one interested in aligning margin data, >> I guess this is

Re: [NTG-context] two suggestions for \setuphead

2017-03-27 Thread Hans Hagen
On 3/27/2017 9:49 PM, Pablo Rodriguez wrote: On 03/27/2017 09:29 PM, Hans Hagen wrote: On 3/27/2017 8:00 PM, Pablo Rodriguez wrote: Sorry, I was trying to understand why width has no default value in margin data. because there was no need, as it anchors at the side of the text Sorry again,

Re: [NTG-context] two suggestions for \setuphead

2017-03-27 Thread Pablo Rodriguez
On 03/27/2017 09:29 PM, Hans Hagen wrote: > On 3/27/2017 8:00 PM, Pablo Rodriguez wrote: >> Sorry, I was trying to understand why width has no default value in >> margin data. > > because there was no need, as it anchors at the side of the text Sorry again, but I must be missing something

Re: [NTG-context] two suggestions for \setuphead

2017-03-27 Thread Hans Hagen
On 3/27/2017 8:00 PM, Pablo Rodriguez wrote: On 03/27/2017 05:22 PM, Hans Hagen wrote: On 3/27/2017 3:57 PM, Pablo Rodriguez wrote: [...] On a second thought, I wonder why width in \setupmargindata hasn’t its default value to \leftmarginwidth or \rightmarginwidth depending on the chosen

Re: [NTG-context] two suggestions for \setuphead

2017-03-27 Thread Pablo Rodriguez
On 03/27/2017 05:22 PM, Hans Hagen wrote: > On 3/27/2017 3:57 PM, Pablo Rodriguez wrote: >> [...] >> On a second thought, I wonder why width in \setupmargindata hasn’t its >> default value to \leftmarginwidth or \rightmarginwidth depending on the >> chosen location value for the same

Re: [NTG-context] two suggestions for \setuphead

2017-03-27 Thread Hans Hagen
On 3/27/2017 3:57 PM, Pablo Rodriguez wrote: On 03/26/2017 10:20 PM, Wolfgang Schuster wrote: Pablo Rodriguez schrieb am 26. März 2017 um 22:09: [...] I’m afraid that I found an issue. Alignment in margindata doesn’t work: \showframe \definemargindata[outerhead][outer]

Re: [NTG-context] two suggestions for \setuphead

2017-03-27 Thread Pablo Rodriguez
On 03/26/2017 10:20 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez schrieb am 26. März 2017 um 22:09: >> [...] >> I’m afraid that I found an issue. Alignment in margindata doesn’t work: >> >> \showframe >> >> \definemargindata[outerhead][outer] >> \setupmargindata[outerhead][align=center] > >

Re: [NTG-context] two suggestions for \setuphead

2017-03-26 Thread Pablo Rodriguez
On 03/26/2017 10:20 PM, Wolfgang Schuster wrote: >> Pablo Rodriguez schrieb am 26. März 2017 um 22:09: >> [...] >> \definemargindata[outerhead][outer] >> \setupmargindata[outerhead][align=center] > > \setupmargindata[outerhead][align=center,width=\rightmarginwidth] Many thanks for your help,

Re: [NTG-context] two suggestions for \setuphead

2017-03-26 Thread Wolfgang Schuster
Pablo Rodriguez 26. März 2017 um 22:09via Postbox Many thanks for the implementation, Hans. I’m afraid that I found an issue. Alignment in margindata doesn’t work: \showframe

Re: [NTG-context] two suggestions for \setuphead

2017-03-26 Thread Pablo Rodriguez
d an issue. Alignment in margindata doesn’t work: \showframe \definemargindata[outerhead][outer] \setupmargindata[outerhead][align=center] \setuppagenumbering [alternative=doublesided] \setuphead [section] [alternative=inmargin, align=center,

Re: [NTG-context] two suggestions for \setuphead

2017-03-26 Thread Hans Hagen
titles and numbers (separately): \showframe %~ \setuphead[section][alternative=inmargin, align=center] \setuphead[section][alternative=inmargin] \setuphead[subsection][alternative=margin] \setuppagenumbering[alternative=doublesided] \starttext \dorecurse{5}{\section

Re: [NTG-context] two suggestions for \setuphead

2017-03-23 Thread Pablo Rodriguez
sals. The first one is about aligning titles and numbers (separately): \showframe %~ \setuphead[section][alternative=inmargin, align=center] \setuphead[section][alternative=inmargin] \setuphead[subsection][alternative=margin] \setuppagenumbering[alternative=doublesided]

Re: [NTG-context] two suggestions for \setuphead

2017-03-22 Thread Hans Hagen
On 3/15/2017 8:59 PM, Pablo Rodriguez wrote: Hans, here is my minimal sample: \showframe \starttext \setuphead[section][alternative=margin] \section{This is a title} \stoptext After having to adapt a special page design for a friend, I realized that reverse would

[NTG-context] two suggestions for \setuphead

2017-03-15 Thread Pablo Rodriguez
Hans, here is my minimal sample: \showframe \starttext \setuphead[section][alternative=margin] \section{This is a title} \stoptext After having to adapt a special page design for a friend, I realized that reverse would be an even greater value for the alternative option

[NTG-context] a question about \setuphead

2016-02-11 Thread Pablo Rodriguez
Dear list, I have the following sample: \setuplabeltext[subsection=Párrafo~] \setuphead[subsection][style=\bf, deepnumbercommand={(}] \starttext \subsection{Condiciones} \stoptext I want the title to be: Párrafo (1) Condiciones How can I set this with deepnumbercommand

Re: [NTG-context] a question about \setuphead

2016-02-11 Thread Pablo Rodriguez
On 02/11/2016 04:44 PM, Tomas Hala wrote: > Hello Pablo, > > the definition should be the following: > > \setuphead[subsection][style=\bf, deepnumbercommand={(}, number=yes, > textcommand={\unskip)~}] Hi Thomas, many thanks for your reply. Your code is exactly what I ne

Re: [NTG-context] a question about \setuphead

2016-02-11 Thread Tomas Hala
Hello Pablo, the definition should be the following: \setuphead[subsection][style=\bf, deepnumbercommand={(}, number=yes, textcommand={\unskip)~}] Wishes, Tomas Thu, Feb 11, 2016 ve 04:08:46PM +0100 Pablo Rodriguez napsal(a): # Dear list, # # I have the following sample

Re: [NTG-context] a question about \setuphead

2016-02-11 Thread Wolfgang Schuster
Pablo Rodriguez <mailto:oi...@gmx.es> 11. Februar 2016 um 16:08 Dear list, I have the following sample: \setuplabeltext[subsection=Párrafo~] \setuphead[subsection][style=\bf, deepnumbercommand={(}] \starttext \subsection{Condiciones} \stoptext I want the title to be: Párrafo (1) Condi

Re: [NTG-context] Formula-numbering and \setuphead[...][number=no]

2016-01-11 Thread Jannik Voges
Thank you, Wolfgang, that works. Best regards Jannik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Formula-numbering and \setuphead[...][number=no]

2016-01-11 Thread Alias 1
Hello, I spotted a strange behavior when I use  \setupformulas[way=bychapter,prefixsegments=chapter] to get formula numbers with the chapternumber as prefix and using \setuphead[…][number=no] to turn off the title number. Minimal example: \setupformulas[way=bychapter,prefixsegments=chapter

Re: [NTG-context] Formula-numbering and \setuphead[...][number=no]

2016-01-11 Thread Wolfgang Schuster
Alias 1 <mailto:researchj...@icloud.com> 11. Januar 2016 um 18:01 Hello, I spotted a strange behavior when I use \setupformulas[way=bychapter,prefixsegments=chapter] to get formula numbers with the chapternumber as prefix and using \setuphead[…][number=no] to turn off the title

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Wolfgang Schuster
, ...). You have to change the default conversion for the appendix. What is the most systemic to \setuphead[part] to give Díl... in body matter and Dodatek... in appendices, and also to get letter numbering (A, B...) in appendices (so Dodatek A, Doadatek B, ...)? You have to set a label for the appendix

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
into \...bodymatter and \...appendices, the \part in body matter yields Díl + number, which is OK, but in appendices it gives nothing + Roman number (I, II, ...). You have to change the default conversion for the appendix. What is the most systemic to \setuphead[part] to give Díl... in body

Re: [NTG-context] \setuphead[part] - special look

2015-06-29 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, one more question. When I place \part into \...bodymatter and \...appendices, the \part in body matter yields Díl + number, which is OK, but in appendices it gives nothing + Roman number (I, II, ...). What is the most systemic to \setuphead[part] to give Díl... in body matter

Re: [NTG-context] \setuphead[part] - special look

2015-06-23 Thread Wolfgang Schuster
the attachment). You can drop the \definebodyfontenvironment line when you use \definefont to set the part fonts, e.g. \definefont[PartText][SerifBold sa 5] \setuphead[part][textstyle=PartText] On Mon, 22 Jun 2015 18:36:03 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: This method

Re: [NTG-context] \setuphead[part] - special look

2015-06-23 Thread Procházka Lukáš Ing . - Pontex s . r . o .
...@gmail.com wrote: This method to set your own layout is also used by other command (e.g. the list mechanism used for the table of contents) and the \defineheadplacement has also a alternative key which is needed when you want an inline heading (e.g. \setuphead[...][alternative=text

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Wolfgang Schuster
required. After some plying with your solution, I deduce: We have to derive a new alternative for part (here partpage) as we CAN assign a new renderingsetup to this alternative but we CANNOT assign a rendering setup in the scope of \setuphead. IOW, there is no \setuphead[part][renderingsetup

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Wolfgang Schuster
Procházka Lukáš Ing. - Pontex s. r. o. mailto:l...@pontex.cz 22. Juni 2015 09:35 Hello, I'm trying to \setuphead[part] to have the following features: 1. Part head to fill the whole page. 2. Part number and name to be placed (approx.) in the golden ratio of the page. 3. Page background

Re: [NTG-context] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
alternative for part (here partpage) as we CAN assign a new renderingsetup to this alternative but we CANNOT assign a rendering setup in the scope of \setuphead. IOW, there is no \setuphead[part][renderingsetup=partpage]. If there was the option \setuphead[part][renderingsetup=partpage] we could

[NTG-context] \setuphead[part] - special look

2015-06-22 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, I'm trying to \setuphead[part] to have the following features: 1. Part head to fill the whole page. 2. Part number and name to be placed (approx.) in the golden ratio of the page. 3. Page background (for the \part only!) to be colored, e.g. blue. \define[2]\MyPartCmd

[NTG-context] [BUG]: `referenceprefix' in `\setuphead' ruins `\cite'

2015-05-29 Thread Alexander Shukaev
Hello, I think I've experienced a severe bug here. Consider the following: \setuphead [chapter][% referenceprefix={chapter}, ] ... \cite[xxx] ... \startpublication[ k={xxx}, t={...}, a={...}, y={...}, ] ... \stoppublication \startchapter [title={BIBLIOGRAPHY}] \whitespace

Re: [NTG-context] [BUG]: `referenceprefix' in `\setuphead' ruins `\cite'

2015-05-29 Thread Alexander Shukaev
On Fri, May 29, 2015 at 5:20 PM, Alexander Shukaev haroo...@gmail.com wrote: Hello, I think I've experienced a severe bug here. Consider the following: ​​ \setuphead [chapter][% referenceprefix={chapter}, ] ... \cite[xxx] ... \startpublication[ k={xxx}, t

Re: [NTG-context] \setuphead for all existing sections

2015-04-21 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, On Tue, 21 Apr 2015 00:38:18 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: The \setupheads command is only a synonym for \setuphead but there can be a difference between \setuphead[..,..=..,..] and \setuphead[section][..,..=..,..] Wolfgang confirmed

Re: [NTG-context] \setuphead for all existing sections

2015-04-21 Thread Wolfgang Schuster
Am 21.04.2015 um 08:55 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, On Tue, 21 Apr 2015 00:38:18 +0200, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: The \setupheads command is only a synonym for \setuphead but there can be a difference between

Re: [NTG-context] \setuphead for all existing sections

2015-04-20 Thread Wolfgang Schuster
Am 20.04.2015 um 20:43 schrieb Lukáš Procházka l...@pontex.cz: Hello Pablo, \setupheads doesn't work for this - see the test: \setupheads[distance=1in] \setuphead[subsection][distance=2in] \starttext \section{Sec} \subsection{Subsec} \stoptext Subsection has

Re: [NTG-context] \setuphead for all existing sections

2015-04-20 Thread Lukáš Procházka
Hello Pablo, \setupheads doesn't work for this - see the test: \setupheads[distance=1in] \setuphead[subsection][distance=2in] \starttext \section{Sec} \subsection{Subsec} \stoptext Subsection has the specified distance of 1 in, whilst the section doesn't. Section was altered

Re: [NTG-context] \setuphead for all existing sections

2015-04-20 Thread Pablo Rodriguez
the same options from \setuphead in \setupheads. Pablo \setupheads[distance=1in] \setuphead[subsection][distance=2in] \starttext \section{Sec} \subsection{Subsec} \stoptext Subsection has the specified distance of 1 in, whilst the section doesn't. Section

[NTG-context] \setuphead for all existing sections

2015-04-17 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, is there a way to affect (setup) all sections that have been defined, like: \setuphead[*][distance=1.5em] instead of: \setuphead[part,chapter,section,subsection,subsubsection][distance=1.5em] The latter way needs to know all section names; the former way allows

Re: [NTG-context] \setuphead for all existing sections

2015-04-17 Thread Pablo Rodriguez
On 04/17/2015 12:00 PM, Procházka Lukáš Ing. - Pontex s. r. o. wrote: Hello, is there a way to affect (setup) all sections that have been defined, like: \setuphead[*][distance=1.5em] instead of: \setuphead[part,chapter,section,subsection,subsubsection][distance=1.5em

Re: [NTG-context] More headache with \setuphead

2015-02-01 Thread Pablo Rodriguez
{chapter} #1}\blank\unhyphenated{#2 \setuphead[chapter] [header=nomarking, command=\MyChapterCommand, aligntitle=yes, align={flushleft,nothyphenated,verytolerant}] \setuphead[title] [command=, textcommand=\MyContentCommand] \starttext \completecontent \chapter{Chapter

  1   2   3   >